|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--javax.servlet.jsp.PageContext
|
+--com.caucho.jsp.QPageContext
| Fields inherited from class javax.servlet.jsp.PageContext |
APPLICATION, APPLICATION_SCOPE, CONFIG, EXCEPTION, OUT, PAGE, PAGE_SCOPE, PAGECONTEXT, REQUEST, REQUEST_SCOPE, RESPONSE, SESSION, SESSION_SCOPE |
| Method Summary | |
java.lang.Object |
findAttribute(java.lang.String name)
Finds an attribute in any of the scopes from page to application. |
void |
forward(java.lang.String relativeUrl)
Forward a subrequest relative to the current url. |
java.lang.Object |
getAttribute(java.lang.String name)
Return the object associated with the name in the page scope or null if not found. |
java.lang.Object |
getAttribute(java.lang.String name,
int scope)
Return the object associated with the name in the specified scope or null if not found. |
java.util.Enumeration |
getAttributeNames()
|
java.util.Enumeration |
getAttributeNames(int scope)
|
java.util.Enumeration |
getAttributeNamesInScope(int scope)
Enumerate all the attributes in a given scope |
int |
getAttributesScope(java.lang.String name)
Get the scope where a given attribute is defined. |
java.lang.String |
getErrorPage()
Returns the page's error page. |
java.lang.Exception |
getException()
The current value of the exception object (an Exception). |
JspWriter |
getOut()
Returns the current writer. |
java.lang.Object |
getPage()
Returns the underlying servlet for the page. |
ServletRequest |
getRequest()
Returns the servlet request for the page. |
ServletResponse |
getResponse()
Returns the servlet response for the page. |
ServletConfig |
getServletConfig()
The ServletConfig instance. |
ServletContext |
getServletContext()
Returns the page's servlet context. |
HttpSession |
getSession()
The current value of the session object (an HttpSession). |
java.lang.Throwable |
getThrowable()
Returns the Throwable stored by the error page. |
void |
handlePageException(java.lang.Exception e)
Handles an exception caught in the JSP page. |
void |
handlePageException(java.lang.Throwable e)
Handles an exception caught in the JSP page. |
void |
include(java.lang.String relativeUrl)
Include another servlet into the current output stream. |
void |
initialize(Servlet servlet,
ServletRequest request,
ServletResponse response,
java.lang.String errorPage,
boolean needsSession,
int bufferSize,
boolean autoFlush)
The initialize method is called to initialize an uninitialized PageContext so that it may be used by a JSP Implementation class to service an incoming request and response within it's _jspService() method. |
JspWriter |
popBody()
Pops the BodyContent from the JspWriter stack. |
BodyContent |
pushBody()
Pushes a new BodyContent onto the JspWriter stack. |
void |
release()
This method shall "reset" the internal state of a PageContext, releasing all internal references, and preparing the PageContext for potential reuse by a later invocation of initialize(). |
void |
releaseBody(QBodyContent out)
|
void |
removeAttribute(java.lang.String name)
Removes a named attribute from the page context. |
void |
removeAttribute(java.lang.String name,
int scope)
Remove the object reference associated with the specified name in the given scope. |
void |
setAttribute(java.lang.String name,
java.lang.Object attribute)
Register the name and object specified with page scope semantics. |
void |
setAttribute(java.lang.String name,
java.lang.Object value,
int scope)
register the name and object specified with appropriate scope semantics |
void |
setErrorPage(java.lang.String errorPage)
Sets the page's error page. |
void |
write(byte[] buffer,
int offset,
int length)
Prints bytes to the current write stream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public void initialize(Servlet servlet,
ServletRequest request,
ServletResponse response,
java.lang.String errorPage,
boolean needsSession,
int bufferSize,
boolean autoFlush)
PageContextThe initialize method is called to initialize an uninitialized PageContext so that it may be used by a JSP Implementation class to service an incoming request and response within it's _jspService() method.
This method is typically called from JspFactory.getPageContext() in order to initialize state.
This method is required to create an initial JspWriter, and associate the "out" name in page scope with this newly created object.
This method should not be used by page or tag library authors.
initialize in class PageContextjavax.servlet.jsp.PageContextservlet - The Servlet that is associated with this PageContextrequest - The currently pending request for this Servletresponse - The currently pending response for this ServleterrorPageURL - The value of the errorpage attribute from the page directive or nullneedsSession - The value of the session attribute from the page directivebufferSize - The value of the buffer attribute from the page directiveautoFlush - The value of the autoflush attribute from the page directivejava.io.IOException - during creation of JspWriterjava.lang.IllegalStateException - if out not correctly initializedpublic java.lang.Object getAttribute(java.lang.String name)
PageContextgetAttribute in class PageContextjavax.servlet.jsp.PageContextname - the name of the attribute to getNullPointerException - if the name is nulljava.lang.IllegalArgumentException - if the scope is invalid
public void setAttribute(java.lang.String name,
java.lang.Object attribute)
PageContextsetAttribute in class PageContextjavax.servlet.jsp.PageContextname - the name of the attribute to setattribute - the object to associate with the nameNullPointerException - if the name or object is nullpublic void removeAttribute(java.lang.String name)
removeAttribute in class PageContextjavax.servlet.jsp.PageContextname - The name of the object to remove.public java.util.Enumeration getAttributeNames()
public java.lang.Object getAttribute(java.lang.String name,
int scope)
PageContextgetAttribute in class PageContextjavax.servlet.jsp.PageContextname - the name of the attribute to setscope - the scope with which to associate the name/objectNullPointerException - if the name is nulljava.lang.IllegalArgumentException - if the scope is invalid
public void setAttribute(java.lang.String name,
java.lang.Object value,
int scope)
PageContextsetAttribute in class PageContextjavax.servlet.jsp.PageContextname - the name of the attribute to seto - the object to associate with the namescope - the scope with which to associate the name/objectNullPointerException - if the name or object is nulljava.lang.IllegalArgumentException - if the scope is invalid
public void removeAttribute(java.lang.String name,
int scope)
PageContextremoveAttribute in class PageContextjavax.servlet.jsp.PageContextname - The name of the object to remove.scope - The scope where to look.public java.util.Enumeration getAttributeNames(int scope)
public java.util.Enumeration getAttributeNamesInScope(int scope)
PageContextgetAttributeNamesInScope in class PageContextjavax.servlet.jsp.PageContextpublic java.lang.Object findAttribute(java.lang.String name)
findAttribute in class PageContextname - the attribute name.public int getAttributesScope(java.lang.String name)
PageContextgetAttributesScope in class PageContextjavax.servlet.jsp.PageContextpublic JspWriter getOut()
getOut in class PageContextjavax.servlet.jsp.PageContext
public void write(byte[] buffer,
int offset,
int length)
throws java.io.IOException
buffer - byte buffer for the dataoffset - start offset into the datalength - length of data to writepublic BodyContent pushBody()
pushBody in class PageContextjavax.servlet.jsp.PageContextpublic JspWriter popBody()
popBody in class PageContext
public void releaseBody(QBodyContent out)
throws java.io.IOException
public java.lang.Object getPage()
getPage in class PageContextjavax.servlet.jsp.PageContextpublic ServletRequest getRequest()
getRequest in class PageContextjavax.servlet.jsp.PageContextpublic ServletResponse getResponse()
getResponse in class PageContextjavax.servlet.jsp.PageContextpublic HttpSession getSession()
PageContextgetSession in class PageContextjavax.servlet.jsp.PageContextpublic ServletConfig getServletConfig()
PageContextgetServletConfig in class PageContextjavax.servlet.jsp.PageContextpublic ServletContext getServletContext()
getServletContext in class PageContextjavax.servlet.jsp.PageContextpublic java.lang.String getErrorPage()
public void setErrorPage(java.lang.String errorPage)
public java.lang.Exception getException()
PageContextgetException in class PageContextjavax.servlet.jsp.PageContextpublic java.lang.Throwable getThrowable()
public void include(java.lang.String relativeUrl)
throws ServletException,
java.io.IOException
include in class PageContextrelativeUrl - url relative to the current request.
public void forward(java.lang.String relativeUrl)
throws ServletException,
java.io.IOException
forward in class PageContextrelativeUrl - url relative to the current file
public void handlePageException(java.lang.Exception e)
throws ServletException,
java.io.IOException
handlePageException in class PageContexte - the caught exception
public void handlePageException(java.lang.Throwable e)
throws ServletException,
java.io.IOException
handlePageException in class PageContexte - the caught exceptionpublic void release()
PageContextThis method shall "reset" the internal state of a PageContext, releasing all internal references, and preparing the PageContext for potential reuse by a later invocation of initialize(). This method is typically called from JspFactory.releasePageContext().
Subclasses shall envelope this method.
This method should not be used by page or tag library authors.
release in class PageContext
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||